package com.oplink.webbase.modules.cfg.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.oplink.webbase.modules.cfg.dao.CfgNeTypeDao;
import com.oplink.webbase.modules.cfg.entity.CfgNeType;

/**
 * 网元类型
 * @author yizhang
 */
@Component
@Transactional
public class CfgNetypeService {

	@Autowired
	private CfgNeTypeDao netypeDao;
	
	public List<CfgNeType> getAllNeType() {
		return (List<CfgNeType>)netypeDao.findAll();
	}	
	
	public CfgNeType getOneCfgNeType(Long id) {
		CfgNeType netype = netypeDao.findOne(id);
		return netype;
	}		
	
}
